﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace nsadv.Statistic.Domain
{
	public class Campaign : Entity
	{
		public virtual string Name { get; set; }

		public virtual Advertiser Advertiser { get; set; }
		public virtual DateTime? StartTime { get; set; }
		public virtual DateTime? EndTime { get; set; }
		public virtual bool IsActive { get; set; }

		public Campaign()
		{
			IsActive = true;
		}
		
		private IList<Banner> _banners = new List<Banner>();
		public virtual IList<Banner> Banners
		{
			get { return _banners; }
			set { _banners = value; }
		}
	}
}
